import adminLayout from '@/layout/admin/index';
import overviewRoute from './overview';
import trainingRoute from './training';
import examdataRoute from './examdata';
import basedataRoute from './basedata';
import websiteRoute from './website';
import systemRoute from './system';

export default [{
	path: '/admin',
	name: 'Admin',
	redirect: '/admin/overview',
	meta: {
		title: '首页'
	},
	component: adminLayout,
	children: [{
			path: 'index',
			name: 'adminIndex',
			meta: {
				title: "后台首页"
			},
			component: () => import('@/views/admin/index/index')
		},
		...overviewRoute,
		...trainingRoute,
		...examdataRoute,
		...basedataRoute,
		...websiteRoute,
		...systemRoute
	]
}]